package com.blakebarrett.utils
{
	import flash.display.BitmapData;
	import flash.utils.ByteArray;
	
	import mx.graphics.codec.JPEGEncoder;
	
	public class ImageUtil
	{
		public static function encode ( _bmpData : BitmapData ) : ByteArray {
			var _jpgEncoder : JPEGEncoder = new JPEGEncoder ( 100 );
			return _jpgEncoder.encode( _bmpData );
		}
	}
}